package com.yipinhouse.backstage.client.param;

import com.yipinhouse.house.client.enums.EnumValue;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class UpdateNewHouseWebParam {

    @NotNull
    private Integer id;

    /**
     * 单价
     */
    @Min(0)
    private BigDecimal singlePrice;

    /**
     * 总价
     */
    @Min(0)
    private BigDecimal totalPrice;

    /**
     * 户型ID
     */
    @Min(0)
    private Integer apartmentId;

    /**
     * 状态:在售SALE|期房PERIOD|现房NOW
     */
    @NotBlank(message="请选择状态")
    @EnumValue(strValues={"SALE","PERIOD","NOW"}, message="房源状态错误")
    private String saleStatus;

    /**
     * 装修:带装修 DECORATE|毛胚 BLANK
     */
    @NotBlank(message="请输入装修情况")
    @EnumValue(strValues={"DECORATE","BLANK"},message = "装修情况错误")
    private String fitment;

    /**
     * 房源特色
     */
    @NotBlank(message="请输入房源特色")
    private String features;

    /**
     * 楼盘ID
     */
    @Min(0)
    private Integer buildingId;

    /**
     * 门牌号
     */
    @NotBlank(message="请输入门牌号")
    private String doorplate;
}
